#ifndef __CZF_LOGO_SPEED_DLG_BAR_H__
#define __CZF_LOGO_SPEED_DLG_BAR_H__

#include "SimpleWnd/SimpleWnd.h"
#include "SimpleWnd/SliderCtrl.h"
#include "resource.h"
#include "CanvasWnd.h"

#define MIN_SPEED (30)
#define MAX_SPEED (100)

class CDialogBar : public CDialog
{
public:
    CDialogBar();
    virtual ~CDialogBar() {};

    void SetCanvasWnd(CCanvasWnd* pCanvas);

    DIALOG_ID(IDD_DLGBAR)
    
    BEGIN_MSG_MAP(CDialogBar)
        MESSAGE_HANDLER(WM_HSCROLL, OnHScroll)
        MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
    END_MSG_MAP()

protected:
	LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
    LRESULT OnHScroll(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);

protected:
    CSliderCtrl     m_speed;
    CCanvasWnd*     m_pCanvas;
};
#endif
